SDK & CLI
Net Protocol provides a TypeScript SDK and command-line tool for building applications and interacting with the protocol programmatically.
Repository: github.com/stuckinaboot/net-public
CLI Tool (netp)
The netp CLI lets you interact with Net Protocol directly from your terminal.
What you can do:
- Send and read messages
- Upload and read from storage
- Deploy Netr tokens
- Query protocol info
Best for: Quick operations, scripts, automation, AI agent interactions.
Install: npm install -g @net-protocol/cli
TypeScript SDK
SDK packages for building applications on Net Protocol:
| Package | Purpose |
|---|---|
@net-protocol/core | Read and send messages |
@net-protocol/storage | Key-value storage operations |
@net-protocol/netr | Token deployment and queries |
@net-protocol/relay | Gasless transactions via x402 |
Each package provides both React hooks (for frontend apps) and client classes (for Node.js/backend).
Best for: Building web applications, React/Next.js apps, Node.js services.
Example Application
A working Next.js application demonstrating wallet connection, messaging, and storage operations.